/*
 *	ftrace.h
 *	Common definitions and helpers.
 */

#ifndef FTRACE_H
#define FTRACE_H


// Define debuggin macros based on build setting.
#ifdef FTRACE_DEBUG
# 	include <stdio.h>
# 	include <assert.h>
# 	define FTRACE_LOG(format, args...) fprintf(stderr, format, ## args)
# 	define FTRACE_ASSERT(pred) assert((pred))
#else
# 	define FTRACE_LOG(format, args...)
# 	define FTRACE_ASSERT(pred)
#endif // FTRACE_DEBUG


#endif // FTRACE_H

